/*
 +----------------------------------------------------------------------
 + Title        : message
 + Author       : huwl
 + Version      : 1.0.0
 + Initial-Time : 2023-03-11
 + Last-time    : 这个文件最后修改的时间 + 修改人的名称
 + Desc         : 消息接口
 +----------------------------------------------------------------------
*/

import type { MessageListParam, MessageListResult } from '@/types/chat'
import type { ApiResponse } from '@/types/global'
import request from '@/utils/httpRequest'

/**
 * 消息列表,请求方式[GET]
 * 
 * @param MessageListParam data --------------------------------请求参数
 * @returns <any, ApiResponse<MessageListResult>>
 * @author huwl
 */
export const reqMessageListAPI = (data: MessageListParam) => {
    return request<any, ApiResponse<MessageListResult>>({
        method: 'GET',
        url: 'message/list',
        params: data
    })
}